using Newtonsoft.Json;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using UnityEngine;

public class ConfigManager : MonoBehaviour
{
    public static ConfigManager Ins;
    public List<Passenger> passengers = new List<Passenger>();
    public  List<PlayerData> playerDatas = new List<PlayerData>();
    private void Awake()
    {
        Ins = this;
    }
    public void JieJson()
    {
        passengers = JsonConvert.DeserializeObject<List<Passenger>>(Resources.Load<TextAsset>("Passenger").text);
    }
    public void JiePlayerData()
    {
        playerDatas = JsonConvert.DeserializeObject<List<PlayerData>>(Resources.Load<TextAsset>("Player").text);
    }
}

public class Passenger
{
    public string name;
    public string icon;
}

public class PlayerData
{
    public string name;
    public string icon;
    public string Des;
    public string id;

}
